package com.wicket.okrbff.biz.service.impl;

import cn.hutool.core.bean.BeanUtil;
import com.wicket.okrapp.integration.dto.*;
import com.wicket.okrbff.biz.service.DashboardTargetContentService;
import com.wicket.okrbff.biz.service.dto.common.BffStandardDataDto;
import com.wicket.okrbff.biz.service.dto.req.*;
import com.wicket.okrbff.biz.service.dto.res.*;
import com.wicket.okrbff.common.ro.OkrResult;
import com.wicket.okrbff.common.ro.OkrResult;
import com.wicket.okrbff.common.util.CommonFunctionHelper;
import com.wicket.okrbff.common.util.RedisUtil;
import javax.annotation.Resource;

import com.wicket.okrcalc.integration.dto.StandardDataDto;
import com.wicket.okrframework.integration.dto.*;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.stereotype.Service;
import com.wicket.okrcalc.integration.FwCalcDashboardTargetContentClient;
import com.wicket.okrcalc.integration.dto.QueryMemberObjectiveRankingListRespDto;
import com.wicket.okrcalc.integration.dto.QueryMemberObjectiveRankingListReqDto;
import com.wicket.okrapp.integration.FwAppDashboardTargetContentClient;

import java.util.stream.Collectors;
import cn.hutool.core.collection.CollectionUtil;
import com.wicket.okrbff.common.exception.Assert;
import com.wicket.okrbff.biz.service.dto.common.BffKeyFocusDto;
import com.wicket.okrbff.biz.service.dto.common.BffCopywritingDto;
import com.wicket.okrbff.biz.service.dto.common.BffReportingTaskDto;
import com.wicket.okrapp.integration.FwAppVirtualOrgClient;
import com.wicket.okrframework.integration.FwBaseOrgClient;
import com.wicket.okrframework.integration.FwBaseInductionRecordClient;
import com.wicket.okrapp.integration.FwAppCycleStageDataClient;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@Service
public class DashboardTargetContentServiceImpl
  implements DashboardTargetContentService {

  @Resource
  private RedisUtil redisUtil;
@Resource
  FwCalcDashboardTargetContentClient fwCalcDashboardTargetContentClient;

@Resource
  FwAppDashboardTargetContentClient fwAppDashboardTargetContentClient;
@Resource
  FwAppVirtualOrgClient fwAppVirtualOrgClient;
@Resource
  FwBaseOrgClient fwBaseOrgClient;

@Resource
  FwBaseInductionRecordClient fwBaseInductionRecordClient;
@Resource
  FwAppCycleStageDataClient fwAppCycleStageDataClient;
/**
   * B4查询个人指标排行列表[9053]
   * gen by moon at 4/7/2024, 3:35:35 PM
   */
    @Trace(operationName = "B4查询个人指标排行列表")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryMemberObjectiveRankingListRespDto queryMemberObjectiveRankingList(BffQueryMemberObjectiveRankingListReqDto reqDto){
      
       
       QueryMemberObjectiveRankingListRespDto queryMemberObjectiveRankingListRespDto_1 =null;
BatchQueryUserInfoByTargetCycleIdComRespDto batchQueryUserInfoByTargetCycleIdComRespDto_1 =null;
//步骤0: D4查询个人指标排行列表 - queryMemberObjectiveRankingList
     QueryMemberObjectiveRankingListRespDto queryMemberObjectiveRankingListRespDto = null;
    QueryMemberObjectiveRankingListReqDto queryMemberObjectiveRankingListReqDto=new QueryMemberObjectiveRankingListReqDto();
  queryMemberObjectiveRankingListReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1684791_1
if(reqDto!=null){
      queryMemberObjectiveRankingListReqDto.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1684789_1
queryMemberObjectiveRankingListReqDto.setDataType(reqDto.getDataType());//SimpleFieldAssign//sourceId:1685188_1
queryMemberObjectiveRankingListReqDto.setDataUsageSceneCode(reqDto.getDataUsageSceneCode());//SimpleFieldAssign//sourceId:1685189_1
queryMemberObjectiveRankingListReqDto.setParentSubMidCycleType(reqDto.getParentSubMidCycleType());//SimpleFieldAssign//sourceId:1712284_1
queryMemberObjectiveRankingListReqDto.setPeriodId(reqDto.getPeriodId());//SimpleFieldAssign//sourceId:1685190_1
queryMemberObjectiveRankingListReqDto.setStandardDataOrderType(reqDto.getStandardDataOrderType());//SimpleFieldAssign//sourceId:1686262_1
queryMemberObjectiveRankingListReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1684790_1
    }
  
    /*D4查询个人指标排行列表[9047]   */
    Assert.isNull(queryMemberObjectiveRankingListReqDto.getOriginalRoleMemberId(),"B4查询个人指标排行列表-D4查询个人指标排行列表-身份人员ID不能为空",false);
Assert.isNull(queryMemberObjectiveRankingListReqDto.getDataType(),"B4查询个人指标排行列表-D4查询个人指标排行列表-数据点类型不能为空",false);
Assert.isNull(queryMemberObjectiveRankingListReqDto.getDataUsageSceneCode(),"B4查询个人指标排行列表-D4查询个人指标排行列表-数据业务场景不能为空",false);
Assert.isNull(queryMemberObjectiveRankingListReqDto.getParentSubMidCycleType(),"B4查询个人指标排行列表-D4查询个人指标排行列表-父子中周期类型不能为空",false);
Assert.isNull(queryMemberObjectiveRankingListReqDto.getPeriodId(),"B4查询个人指标排行列表-D4查询个人指标排行列表-周期ID不能为空",false);
Assert.isNull(queryMemberObjectiveRankingListReqDto.getEvaluationTemplateId(),"B4查询个人指标排行列表-D4查询个人指标排行列表-评价模板ID不能为空",false);
Assert.isNull(queryMemberObjectiveRankingListReqDto.getSpaceId(),"B4查询个人指标排行列表-D4查询个人指标排行列表-创建于空间ID不能为空",false);
      queryMemberObjectiveRankingListRespDto = fwCalcDashboardTargetContentClient.queryMemberObjectiveRankingList(queryMemberObjectiveRankingListReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      queryMemberObjectiveRankingListRespDto_1 = queryMemberObjectiveRankingListRespDto;
    
//步骤1: D3批量查询个人信息By目标周期(公共) - batchQueryUserInfoByTargetCycleIdCom
     BatchQueryUserInfoByTargetCycleIdComRespDto batchQueryUserInfoByTargetCycleIdComRespDto = null;
    if(queryMemberObjectiveRankingListRespDto !=null){
          BatchQueryUserInfoByTargetCycleIdComReqDto batchQueryUserInfoByTargetCycleIdComReqDto=new BatchQueryUserInfoByTargetCycleIdComReqDto();
  if(queryMemberObjectiveRankingListRespDto!= null&&  queryMemberObjectiveRankingListRespDto.getStandardDataList() !=null&& !CollectionUtil.isEmpty(queryMemberObjectiveRankingListRespDto.getStandardDataList())){
      batchQueryUserInfoByTargetCycleIdComReqDto.setEvaObjTargetCycleList(queryMemberObjectiveRankingListRespDto.getStandardDataList().stream().map(item->item.getEntityId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1686848_1
    }
if(reqDto!=null){
      batchQueryUserInfoByTargetCycleIdComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1686849_1
    }
  
    /*D3批量查询个人信息By目标周期(公共)[9071]   */
    Assert.isNull(batchQueryUserInfoByTargetCycleIdComReqDto.getEvaluationTemplateId(),"B4查询个人指标排行列表-D3批量查询个人信息By目标周期(公共)-冗余评价模板ID不能为空",false);
      batchQueryUserInfoByTargetCycleIdComRespDto = fwAppDashboardTargetContentClient.batchQueryUserInfoByTargetCycleIdCom(batchQueryUserInfoByTargetCycleIdComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      batchQueryUserInfoByTargetCycleIdComRespDto_1 = batchQueryUserInfoByTargetCycleIdComRespDto;
           }
    
BffQueryMemberObjectiveRankingListRespDto retData = new BffQueryMemberObjectiveRankingListRespDto();
  //数据集融合  MoreListToOneSource
        if(queryMemberObjectiveRankingListRespDto_1!= null && !CollectionUtil.isEmpty(queryMemberObjectiveRankingListRespDto_1.getStandardDataList()) ){
          for (StandardDataDto standardDataDto : queryMemberObjectiveRankingListRespDto_1.getStandardDataList()) {
              BffStandardDataDto retElm = new BffStandardDataDto();
             if(queryMemberObjectiveRankingListRespDto_1!=null){
      retElm.setDataResult(standardDataDto.getDataResult());//SimpleFieldAssign//sourceId:330465_2
retElm.setUnit(standardDataDto.getUnit());//SimpleFieldAssign//sourceId:330466_2
    }
              retData.getStandardDataList().add(retElm);
               if(batchQueryUserInfoByTargetCycleIdComRespDto_1!= null){
          for (EvaObjTargetCycleDto evaObjTargetCycleDto : batchQueryUserInfoByTargetCycleIdComRespDto_1.getEvaObjTargetCycleList()) {
                if (evaObjTargetCycleDto.getEvaObjTargetCycleId().equals(standardDataDto.getEntityId())) {
                 if(batchQueryUserInfoByTargetCycleIdComRespDto_1!=null){
      retElm.setEvaObjTargetCycleId(evaObjTargetCycleDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:330536_2
retElm.setCyclelAlias(evaObjTargetCycleDto.getCyclelAlias());//SimpleFieldAssign//sourceId:330467_2
retElm.setIdCardName(evaObjTargetCycleDto.getIdCardName());//SimpleFieldAssign//sourceId:330468_2
retElm.setNickName(evaObjTargetCycleDto.getNickName());//SimpleFieldAssign//sourceId:330469_2
retElm.setUserFace(evaObjTargetCycleDto.getUserFace());//SimpleFieldAssign//sourceId:330470_2
    }
                }
            }
          }
        
          }
        }//sourceId:1686851_1
  

  
  
return retData;
  }
/**
   * B3查询目标看板周期信息[9354]
   * gen by moon at 3/14/2025, 10:07:01 PM
   */
    @Trace(operationName = "B3查询目标看板周期信息")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryTargetSpectacularCycleInfoDetailRespDto queryTargetSpectacularCycleInfoDetail(BffQueryTargetSpectacularCycleInfoDetailReqDto reqDto){


       QueryTargetSpectacularCycleInfoDetailRespDto queryTargetSpectacularCycleInfoDetailRespDto_1 =null;
//步骤0: D3查询目标看板周期信息详情 - queryTargetSpectacularCycleInfoDetail
     QueryTargetSpectacularCycleInfoDetailRespDto queryTargetSpectacularCycleInfoDetailRespDto = null;
    QueryTargetSpectacularCycleInfoDetailReqDto queryTargetSpectacularCycleInfoDetailReqDto=new QueryTargetSpectacularCycleInfoDetailReqDto();
  queryTargetSpectacularCycleInfoDetailReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1866421_1
if(reqDto!=null){
      queryTargetSpectacularCycleInfoDetailReqDto.setDashboardEnterTypeCode(reqDto.getDashboardEnterTypeCode());//SimpleFieldAssign//sourceId:1866419_1
queryTargetSpectacularCycleInfoDetailReqDto.setDashboardOpenTypeCode(reqDto.getDashboardOpenTypeCode());//SimpleFieldAssign//sourceId:1866420_1
queryTargetSpectacularCycleInfoDetailReqDto.setEvaObjTargetCycleId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1712316_1
queryTargetSpectacularCycleInfoDetailReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1712318_1
queryTargetSpectacularCycleInfoDetailReqDto.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:1873454_1
queryTargetSpectacularCycleInfoDetailReqDto.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:1873455_1
    }

    /*D3查询目标看板周期信息详情[9353]   */
    Assert.isNull(queryTargetSpectacularCycleInfoDetailReqDto.getDashboardEnterTypeCode(),"B3查询目标看板周期信息-D3查询目标看板周期信息详情-大屏入口类型编码不能为空",false);
Assert.isNull(queryTargetSpectacularCycleInfoDetailReqDto.getDashboardOpenTypeCode(),"B3查询目标看板周期信息-D3查询目标看板周期信息详情-大屏开启类型不能为空",false);
Assert.isNull(queryTargetSpectacularCycleInfoDetailReqDto.getSpaceId(),"B3查询目标看板周期信息-D3查询目标看板周期信息详情-创建于空间ID不能为空",false);
      queryTargetSpectacularCycleInfoDetailRespDto = fwAppDashboardTargetContentClient.queryTargetSpectacularCycleInfoDetail(queryTargetSpectacularCycleInfoDetailReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      queryTargetSpectacularCycleInfoDetailRespDto_1 = queryTargetSpectacularCycleInfoDetailRespDto;

BffQueryTargetSpectacularCycleInfoDetailRespDto retData = new BffQueryTargetSpectacularCycleInfoDetailRespDto();
  if(queryTargetSpectacularCycleInfoDetailRespDto_1!=null){
retData.setCycleId(queryTargetSpectacularCycleInfoDetailRespDto_1.getCycleId());//SimpleFieldAssign//sourceId:1711291_1
retData.setCycleStandardName(queryTargetSpectacularCycleInfoDetailRespDto_1.getCycleStandardName());//SimpleFieldAssign//sourceId:1711292_1
retData.setUpdateCycleTypeCode(queryTargetSpectacularCycleInfoDetailRespDto_1.getUpdateCycleTypeCode());//SimpleFieldAssign//sourceId:1873922_1
retData.setEvaObjTargetCycleId(queryTargetSpectacularCycleInfoDetailRespDto_1.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1866407_1
retData.setParentSubMidCycleType(queryTargetSpectacularCycleInfoDetailRespDto_1.getParentSubMidCycleType());//SimpleFieldAssign//sourceId:1711289_1
retData.setEvaluationSubjectId(queryTargetSpectacularCycleInfoDetailRespDto_1.getEvaluationSubjectId());//SimpleFieldAssign//sourceId:1866994_1
retData.setIsHaveProcessCycle(queryTargetSpectacularCycleInfoDetailRespDto_1.getIsHaveProcessCycle());//SimpleFieldAssign//sourceId:1882648_1
retData.setMilestoneAchievementsDisplayVersion(queryTargetSpectacularCycleInfoDetailRespDto_1.getMilestoneAchievementsDisplayVersion());//SimpleFieldAssign//sourceId:1900593_1
retData.setAchievementsConDisplayedType(queryTargetSpectacularCycleInfoDetailRespDto_1.getAchievementsConDisplayedType());//SimpleFieldAssign//sourceId:1900594_1
retData.setCompletionRateAlgorithmType(queryTargetSpectacularCycleInfoDetailRespDto_1.getCompletionRateAlgorithmType());//SimpleFieldAssign//sourceId:1900647_1
retData.setIsOpenAudit(queryTargetSpectacularCycleInfoDetailRespDto_1.getIsOpenAudit());//SimpleFieldAssign//sourceId:1920252_1
retData.setIsSubjectiveScoring(queryTargetSpectacularCycleInfoDetailRespDto_1.getIsSubjectiveScoring());//SimpleFieldAssign//sourceId:1920253_1
retData.setIsOpenBudget(queryTargetSpectacularCycleInfoDetailRespDto_1.getIsOpenBudget());//SimpleFieldAssign//sourceId:1923370_1
retData.setBudgetDisplayVersion(queryTargetSpectacularCycleInfoDetailRespDto_1.getBudgetDisplayVersion());//SimpleFieldAssign//sourceId:2042189_1
retData.setBudgetDisplayType(queryTargetSpectacularCycleInfoDetailRespDto_1.getBudgetDisplayType());//SimpleFieldAssign//sourceId:2042131_1
retData.setIsOpenCapitalUtilizationRate(queryTargetSpectacularCycleInfoDetailRespDto_1.getIsOpenCapitalUtilizationRate());//SimpleFieldAssign//sourceId:1945527_1
retData.setDeptReportTaskAlgorithmType(queryTargetSpectacularCycleInfoDetailRespDto_1.getDeptReportTaskAlgorithmType());//SimpleFieldAssign//sourceId:1966837_1
retData.setHighPlanningDataExport(queryTargetSpectacularCycleInfoDetailRespDto_1.getHighPlanningDataExport());//SimpleFieldAssign//sourceId:2039220_1
retData.setHighReportDataExport(queryTargetSpectacularCycleInfoDetailRespDto_1.getHighReportDataExport());//SimpleFieldAssign//sourceId:2039221_1
retData.setObjectiveDisplayAndExportData(queryTargetSpectacularCycleInfoDetailRespDto_1.getObjectiveDisplayAndExportData());//SimpleFieldAssign//sourceId:2039253_1
retData.setCopywritingList(queryTargetSpectacularCycleInfoDetailRespDto_1.getCopywritingList().stream().map(item -> BeanUtil.toBean(item, BffCopywritingDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1891907_1
    }




return retData;
  }
/**
   * B查询规划网盘重点关注列表[9566]
   * gen by moon at 5/13/2024, 2:55:56 AM
   */
    @Trace(operationName = "B查询规划网盘重点关注列表")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryKeyFocusListRespDto queryKeyFocusList(BffQueryKeyFocusListReqDto reqDto){


       QueryKeyFocusListComRespDto queryKeyFocusListComRespDto_1 =null;
//步骤0: D3查询重点关注列表(公共) - queryKeyFocusListCom
     QueryKeyFocusListComRespDto queryKeyFocusListComRespDto = null;
    QueryKeyFocusListComReqDto queryKeyFocusListComReqDto=new QueryKeyFocusListComReqDto();
  queryKeyFocusListComReqDto.setKeyFocusContentTypeCode("OMS_TARGET_OBJECTIVE");//sourceId:1794106_1
queryKeyFocusListComReqDto.setFocusObjectId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecOriginalRoleMemberId());//CURRENT_ORIGINAL_ROLE_MEMBERID//sourceId:1794104_1
queryKeyFocusListComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1794107_1
if(reqDto!=null){
      queryKeyFocusListComReqDto.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1794105_1
    }

    /*D3查询重点关注列表(公共)[8880]   */
    Assert.isNull(queryKeyFocusListComReqDto.getThemeContentId(),"B查询规划网盘重点关注列表-D3查询重点关注列表(公共)-主题内容ID不能为空",false);
Assert.isNull(queryKeyFocusListComReqDto.getKeyFocusContentTypeCode(),"B查询规划网盘重点关注列表-D3查询重点关注列表(公共)-重点关注内容表类型编码不能为空",false);
Assert.isNull(queryKeyFocusListComReqDto.getFocusObjectId(),"B查询规划网盘重点关注列表-D3查询重点关注列表(公共)-关注主体ID不能为空",false);
Assert.isNull(queryKeyFocusListComReqDto.getSpaceId(),"B查询规划网盘重点关注列表-D3查询重点关注列表(公共)-创建于空间ID不能为空",false);
      queryKeyFocusListComRespDto = fwAppDashboardTargetContentClient.queryKeyFocusListCom(queryKeyFocusListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      queryKeyFocusListComRespDto_1 = queryKeyFocusListComRespDto;

BffQueryKeyFocusListRespDto retData = new BffQueryKeyFocusListRespDto();
  if(queryKeyFocusListComRespDto_1!=null){
      retData.setKeyFocusList(queryKeyFocusListComRespDto_1.getKeyFocusList().stream().map(item -> BeanUtil.toBean(item, BffKeyFocusDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1794111_1
    }




return retData;
  }
/**
   * B3查询汇报任务明细列表[9932]
   * gen by moon at 1/1/2025, 10:14:43 PM
   */
    @Trace(operationName = "B3查询汇报任务明细列表")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryReportTaskDetailsListRespDto queryReportTaskDetailsList(BffQueryReportTaskDetailsListReqDto reqDto){


       QueryDashboardReportTaskDetailsListComRespDto queryDashboardReportTaskDetailsListComRespDto_1 =null;
BatchQueryCycleStageDataListByMainIdsComRespDto batchQueryCycleStageDataListByMainIdsComRespDto_1 =null;
BatchQueryDeptComRespDto batchQueryDeptComRespDto_1 =null;
BatchQueryInductionRecordListComRespDto batchQueryInductionRecordListComRespDto_1 =null;
BatchQueryInductionRecordListComRespDto batchQueryInductionRecordListComRespDto_3 =null;
//步骤0: D3查询大屏汇报任务明细列表(公共) - queryDashboardReportTaskDetailsListCom
     QueryDashboardReportTaskDetailsListComRespDto queryDashboardReportTaskDetailsListComRespDto = null;
    QueryDashboardReportTaskDetailsListComReqDto queryDashboardReportTaskDetailsListComReqDto=new QueryDashboardReportTaskDetailsListComReqDto();
  if(reqDto!=null){
      queryDashboardReportTaskDetailsListComReqDto.setDashboradCoreId(reqDto.getDashboradCoreId());//SimpleFieldAssign//sourceId:1919445_1
queryDashboardReportTaskDetailsListComReqDto.setDashboradCoreTypeCode(reqDto.getDashboradCoreTypeCode());//SimpleFieldAssign//sourceId:1919446_1
queryDashboardReportTaskDetailsListComReqDto.setStateCode(reqDto.getStateCode());//SimpleFieldAssign//sourceId:1919447_1
queryDashboardReportTaskDetailsListComReqDto.setTaskStatus(reqDto.getTaskStatus());//SimpleFieldAssign//sourceId:1989103_1
queryDashboardReportTaskDetailsListComReqDto.setIsComplete(reqDto.getIsComplete());//SimpleFieldAssign//sourceId:1989104_1
queryDashboardReportTaskDetailsListComReqDto.setIsOverdue(reqDto.getIsOverdue());//SimpleFieldAssign//sourceId:1989105_1
queryDashboardReportTaskDetailsListComReqDto.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1989106_1
queryDashboardReportTaskDetailsListComReqDto.setParentSubMidCycleType(reqDto.getParentSubMidCycleType());//SimpleFieldAssign//sourceId:1919450_1
queryDashboardReportTaskDetailsListComReqDto.setEvaObjEntityId(reqDto.getEvaObjEntityId());//SimpleFieldAssign//sourceId:1919448_1
queryDashboardReportTaskDetailsListComReqDto.setEvaObjTypeCode(reqDto.getEvaObjTypeCode());//SimpleFieldAssign//sourceId:1919449_1
queryDashboardReportTaskDetailsListComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1919452_1
    }

    /*D3查询大屏汇报任务明细列表(公共)[9931]   */
    Assert.isNull(queryDashboardReportTaskDetailsListComReqDto.getDashboradCoreTypeCode(),"B3查询汇报任务明细列表-D3查询大屏汇报任务明细列表(公共)-大屏主体类型编码不能为空",false);
Assert.isNull(queryDashboardReportTaskDetailsListComReqDto.getCycleId(),"B3查询汇报任务明细列表-D3查询大屏汇报任务明细列表(公共)-归属周期ID不能为空",false);
Assert.isNull(queryDashboardReportTaskDetailsListComReqDto.getParentSubMidCycleType(),"B3查询汇报任务明细列表-D3查询大屏汇报任务明细列表(公共)-父子中周期类型不能为空",false);
Assert.isNull(queryDashboardReportTaskDetailsListComReqDto.getEvaObjEntityId(),"B3查询汇报任务明细列表-D3查询大屏汇报任务明细列表(公共)-主树被评对象内容表主键ID不能为空",false);
Assert.isNull(queryDashboardReportTaskDetailsListComReqDto.getEvaObjTypeCode(),"B3查询汇报任务明细列表-D3查询大屏汇报任务明细列表(公共)-主树被评对象类型编码不能为空",false);
Assert.isNull(queryDashboardReportTaskDetailsListComReqDto.getEvaluationTemplateId(),"B3查询汇报任务明细列表-D3查询大屏汇报任务明细列表(公共)-冗余评价模板ID不能为空",false);
      queryDashboardReportTaskDetailsListComRespDto = fwAppDashboardTargetContentClient.queryDashboardReportTaskDetailsListCom(queryDashboardReportTaskDetailsListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      queryDashboardReportTaskDetailsListComRespDto_1 = queryDashboardReportTaskDetailsListComRespDto;

//步骤1: D3批量查询周期阶段资料列表ByIds(公共) - batchQueryCycleStageDataListByMainIdsCom
     BatchQueryCycleStageDataListByMainIdsComRespDto batchQueryCycleStageDataListByMainIdsComRespDto = null;
    if(queryDashboardReportTaskDetailsListComRespDto !=null){
          BatchQueryCycleStageDataListByMainIdsComReqDto batchQueryCycleStageDataListByMainIdsComReqDto=new BatchQueryCycleStageDataListByMainIdsComReqDto();
  if(queryDashboardReportTaskDetailsListComRespDto!= null&&  queryDashboardReportTaskDetailsListComRespDto.getReportingTaskList() !=null&& !CollectionUtil.isEmpty(queryDashboardReportTaskDetailsListComRespDto.getReportingTaskList())){
      batchQueryCycleStageDataListByMainIdsComReqDto.setCycleStageDataList(queryDashboardReportTaskDetailsListComRespDto.getReportingTaskList().stream().map(item->item.getEntityId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:2021950_1
    }

    /*D3批量查询周期阶段资料列表ByIds(公共)[10281]   */

      batchQueryCycleStageDataListByMainIdsComRespDto = fwAppCycleStageDataClient.batchQueryCycleStageDataListByMainIdsCom(batchQueryCycleStageDataListByMainIdsComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      batchQueryCycleStageDataListByMainIdsComRespDto_1 = batchQueryCycleStageDataListByMainIdsComRespDto;
           }

//步骤2: D1批量查询部门(公共) - batchQueryDeptCom
     BatchQueryDeptComRespDto batchQueryDeptComRespDto = null;
    if(queryDashboardReportTaskDetailsListComRespDto !=null){
          BatchQueryDeptComReqDto batchQueryDeptComReqDto=new BatchQueryDeptComReqDto();
  batchQueryDeptComReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1998507_1
if(queryDashboardReportTaskDetailsListComRespDto!= null&&  queryDashboardReportTaskDetailsListComRespDto.getReportingTaskList() !=null&& !CollectionUtil.isEmpty(queryDashboardReportTaskDetailsListComRespDto.getReportingTaskList())){
      batchQueryDeptComReqDto.setDeptList(queryDashboardReportTaskDetailsListComRespDto.getReportingTaskList().stream().map(item->item.getDeptId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1998506_1
    }

    /*D1批量查询部门(公共)[7511]   */
    Assert.isNull(batchQueryDeptComReqDto.getSubjectLifeCycle(),"B3查询汇报任务明细列表-D1批量查询部门(公共)-主体生命周期不能为空",false);
      batchQueryDeptComRespDto = fwBaseOrgClient.batchQueryDeptCom(batchQueryDeptComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      batchQueryDeptComRespDto_1 = batchQueryDeptComRespDto;
           }

//步骤3: D1-3批量查询就职记录列表（公共） - batchQueryInductionRecordListCom
     BatchQueryInductionRecordListComRespDto batchQueryInductionRecordListComRespDto = null;
    if(queryDashboardReportTaskDetailsListComRespDto !=null){
          BatchQueryInductionRecordListComReqDto batchQueryInductionRecordListComReqDto=new BatchQueryInductionRecordListComReqDto();
  if(queryDashboardReportTaskDetailsListComRespDto!= null&&  queryDashboardReportTaskDetailsListComRespDto.getReportingTaskList() !=null&& !CollectionUtil.isEmpty(queryDashboardReportTaskDetailsListComRespDto.getReportingTaskList())){
      batchQueryInductionRecordListComReqDto.setPerOrgInductionRecordList(queryDashboardReportTaskDetailsListComRespDto.getReportingTaskList().stream().map(item->String.valueOf(item.getPersonLiableInductionRecordId()))
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1998509_1
    }

    /*D1-3批量查责任人就职记录列表（公共）[602]   */

      batchQueryInductionRecordListComRespDto = fwBaseInductionRecordClient.batchQueryInductionRecordListCom(batchQueryInductionRecordListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      batchQueryInductionRecordListComRespDto_1 = batchQueryInductionRecordListComRespDto;
           }

//步骤4: D1-3批量查询就职记录列表（公共） - batchQueryInductionRecordListCom
     BatchQueryInductionRecordListComRespDto batchQueryInductionRecordListComRespDto_2 = null;
    if(queryDashboardReportTaskDetailsListComRespDto !=null){
          BatchQueryInductionRecordListComReqDto batchQueryInductionRecordListComReqDto_1=new BatchQueryInductionRecordListComReqDto();
  if(queryDashboardReportTaskDetailsListComRespDto!= null&&  queryDashboardReportTaskDetailsListComRespDto.getReportingTaskList() !=null&& !CollectionUtil.isEmpty(queryDashboardReportTaskDetailsListComRespDto.getReportingTaskList())){
      batchQueryInductionRecordListComReqDto_1.setPerOrgInductionRecordList(queryDashboardReportTaskDetailsListComRespDto.getReportingTaskList().stream().map(item->String.valueOf(item.getDirectorInductionRecordId()))
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1998512_1
    }

    /*D1-3批量查询主管就职记录列表（公共）[602]   */

      batchQueryInductionRecordListComRespDto_2 = fwBaseInductionRecordClient.batchQueryInductionRecordListCom(batchQueryInductionRecordListComReqDto_1).getData()/*vcase invoke 跨dubbo调用;*/;


      batchQueryInductionRecordListComRespDto_3 = batchQueryInductionRecordListComRespDto_2;
           }

BffQueryReportTaskDetailsListRespDto retData = new BffQueryReportTaskDetailsListRespDto();
  //数据集融合  MoreListToOneSource
        if(queryDashboardReportTaskDetailsListComRespDto_1!= null && !CollectionUtil.isEmpty(queryDashboardReportTaskDetailsListComRespDto_1.getReportingTaskList()) ){
          for (ReportingTaskDto reportingTaskDto : queryDashboardReportTaskDetailsListComRespDto_1.getReportingTaskList()) {
              BffReportingTaskDto retElm = new BffReportingTaskDto();
             if(queryDashboardReportTaskDetailsListComRespDto_1!=null){
      retElm.setTaskId(reportingTaskDto.getTaskId());//SimpleFieldAssign//sourceId:388499_2
retElm.setTaskName(reportingTaskDto.getTaskName());//SimpleFieldAssign//sourceId:388500_2
retElm.setIsComplete(reportingTaskDto.getIsComplete());//SimpleFieldAssign//sourceId:388502_2
retElm.setStateCode(reportingTaskDto.getStateCode());//SimpleFieldAssign//sourceId:388503_2
retElm.setParentEntityId(reportingTaskDto.getParentEntityId());//SimpleFieldAssign//sourceId:388501_2
retElm.setCoordObjectId(reportingTaskDto.getCoordObjectId());//SimpleFieldAssign//sourceId:416795_2
retElm.setDeptId(reportingTaskDto.getDeptId());//SimpleFieldAssign//sourceId:416796_2
retElm.setPersonLiableInductionRecordId(reportingTaskDto.getPersonLiableInductionRecordId());//SimpleFieldAssign//sourceId:416797_2
retElm.setDirectorInductionRecordId(reportingTaskDto.getDirectorInductionRecordId());//SimpleFieldAssign//sourceId:416798_2
    }
              retData.getReportingTaskList().add(retElm);
               if(batchQueryCycleStageDataListByMainIdsComRespDto_1!= null){
          for (CycleStageDataDto cycleStageDataDto : batchQueryCycleStageDataListByMainIdsComRespDto_1.getCycleStageDataList()) {
                if (cycleStageDataDto.getCycleStageDataId().equals(reportingTaskDto.getEntityId())) {
                 if(batchQueryCycleStageDataListByMainIdsComRespDto_1!=null){
      retElm.setCycleStandardName(cycleStageDataDto.getCycleStandardName());//SimpleFieldAssign//sourceId:425358_2
    }
                }
            }
          }

               if(batchQueryDeptComRespDto_1!= null){
          for (DeptDto deptDto : batchQueryDeptComRespDto_1.getDeptList()) {
                if (deptDto.getDeptId().equals(reportingTaskDto.getDeptId())) {
                 if(batchQueryDeptComRespDto_1!=null){
      retElm.setDeptShortName(deptDto.getDeptShortName());//SimpleFieldAssign//sourceId:416794_2
    }
                }
    }
          }

 if(batchQueryInductionRecordListComRespDto_1!= null){
          for (PerOrgInductionRecordDto perOrgInductionRecordDto : batchQueryInductionRecordListComRespDto_1.getPerOrgInductionRecordList()) {
                if (perOrgInductionRecordDto.getInductionRecordId().equals(reportingTaskDto.getPersonLiableInductionRecordId())) {
                 if(batchQueryInductionRecordListComRespDto_1!=null){
      retElm.setPersonLiableIdCardName(perOrgInductionRecordDto.getIdCardName());//SimpleFieldAssign//sourceId:416799_2
retElm.setPersonLiableNickName(perOrgInductionRecordDto.getNickName());//SimpleFieldAssign//sourceId:416800_2
    }
                }
            }
          }

 if(batchQueryInductionRecordListComRespDto_3!= null){
          for (PerOrgInductionRecordDto perOrgInductionRecordDto : batchQueryInductionRecordListComRespDto_3.getPerOrgInductionRecordList()) {
                if (perOrgInductionRecordDto.getInductionRecordId().equals(reportingTaskDto.getDirectorInductionRecordId())) {
                 if(batchQueryInductionRecordListComRespDto_3!=null){
      retElm.setDirectorIdCardName(perOrgInductionRecordDto.getIdCardName());//SimpleFieldAssign//sourceId:416801_2
retElm.setDirectorNickName(perOrgInductionRecordDto.getNickName());//SimpleFieldAssign//sourceId:416802_2
    }
                }
            }
          }

          }
        }//sourceId:1919461_1


  retData.setPageNum(queryDashboardReportTaskDetailsListComRespDto.getPageNum());
        retData.setPageSize(queryDashboardReportTaskDetailsListComRespDto.getPageSize());
        retData.setTotal(queryDashboardReportTaskDetailsListComRespDto.getTotalNum());
        retData.setIsLastPage((Math.ceil(Double.valueOf(queryDashboardReportTaskDetailsListComRespDto.getTotalNum()) / Double.valueOf(queryDashboardReportTaskDetailsListComRespDto.getPageSize()))) <= retData.getPageNum());


return retData;
  }
/**
   * B3删除重点关注[10060]
   * gen by moon at 7/26/2024, 2:18:49 PM
   */
    @Trace(operationName = "B3删除重点关注")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffDeleteKeyFocusRespDto deleteKeyFocus(BffDeleteKeyFocusReqDto reqDto){


       //步骤0: D3删除重点关注(公共) - deleteKeyFocusCom
     DeleteKeyFocusComRespDto deleteKeyFocusComRespDto = null;
    DeleteKeyFocusComReqDto deleteKeyFocusComReqDto=new DeleteKeyFocusComReqDto();
  if(reqDto!=null){
      deleteKeyFocusComReqDto.setKeyFocusId(reqDto.getKeyFocusId());//SimpleFieldAssign//sourceId:1956854_1
    }

    /*D3删除重点关注(公共)[10059]   */
    Assert.isNull(deleteKeyFocusComReqDto.getKeyFocusId(),"B3删除重点关注-D3删除重点关注(公共)-重点关注ID不能为空",false);
      deleteKeyFocusComRespDto = fwAppDashboardTargetContentClient.deleteKeyFocusCom(deleteKeyFocusComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;




BffDeleteKeyFocusRespDto retData = new BffDeleteKeyFocusRespDto();





return retData;
  }
/**
   * B3新增重点关注[10061]
   * gen by moon at 7/26/2024, 2:18:56 PM
   */
    @Trace(operationName = "B3新增重点关注")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffAddKeyFocusRespDto addKeyFocus(BffAddKeyFocusReqDto reqDto){


       //步骤0: D3新增重点关注(公共) - addKeyFocusCom
     AddKeyFocusComRespDto addKeyFocusComRespDto = null;
    AddKeyFocusComReqDto addKeyFocusComReqDto=new AddKeyFocusComReqDto();
  addKeyFocusComReqDto.setOrderNumber(Long.valueOf(0));//CUSTOM_CONVENTION//sourceId:1956870_1
if(reqDto!=null){
      addKeyFocusComReqDto.setKeyFocusContentId(reqDto.getKeyFocusContentId());//SimpleFieldAssign//sourceId:1956856_1
addKeyFocusComReqDto.setKeyFocusContentName(reqDto.getKeyFocusContentName());//SimpleFieldAssign//sourceId:1957428_1
addKeyFocusComReqDto.setKeyFocusContentTypeCode(reqDto.getKeyFocusContentTypeCode());//SimpleFieldAssign//sourceId:1956857_1
addKeyFocusComReqDto.setFocusObjectId(reqDto.getFocusObjectId());//SimpleFieldAssign//sourceId:1956858_1
addKeyFocusComReqDto.setFocusObjectTypeCode(reqDto.getFocusObjectTypeCode());//SimpleFieldAssign//sourceId:1956859_1
addKeyFocusComReqDto.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1956860_1
addKeyFocusComReqDto.setThemeContentTypeCode(reqDto.getThemeContentTypeCode());//SimpleFieldAssign//sourceId:1956861_1
    }

    /*D3新增重点关注(公共)[10057]   */
    Assert.isNull(addKeyFocusComReqDto.getKeyFocusContentId(),"B3新增重点关注-D3新增重点关注(公共)-重点关注内容ID不能为空",false);
Assert.isNull(addKeyFocusComReqDto.getKeyFocusContentName(),"B3新增重点关注-D3新增重点关注(公共)-重点关注内容名称不能为空",false);
Assert.isNull(addKeyFocusComReqDto.getKeyFocusContentTypeCode(),"B3新增重点关注-D3新增重点关注(公共)-重点关注内容表类型编码不能为空",false);
Assert.isNull(addKeyFocusComReqDto.getFocusObjectId(),"B3新增重点关注-D3新增重点关注(公共)-关注主体ID不能为空",false);
Assert.isNull(addKeyFocusComReqDto.getFocusObjectTypeCode(),"B3新增重点关注-D3新增重点关注(公共)-关注主体表类型编码不能为空",false);
Assert.isNull(addKeyFocusComReqDto.getThemeContentId(),"B3新增重点关注-D3新增重点关注(公共)-主题内容ID不能为空",false);
Assert.isNull(addKeyFocusComReqDto.getThemeContentTypeCode(),"B3新增重点关注-D3新增重点关注(公共)-主题内容表类型编码不能为空",false);
Assert.isNull(addKeyFocusComReqDto.getOrderNumber(),"B3新增重点关注-D3新增重点关注(公共)-排序不能为空",false);
      addKeyFocusComRespDto = fwAppDashboardTargetContentClient.addKeyFocusCom(addKeyFocusComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;




BffAddKeyFocusRespDto retData = new BffAddKeyFocusRespDto();





return retData;
  }
/**
   * B3查询重点关注列表[10068]
   * gen by moon at 8/6/2024, 10:11:35 PM
   */
    @Trace(operationName = "B3查询重点关注列表")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryKeyFocusBusinessProcessListRespDto queryKeyFocusBusinessProcessList(BffQueryKeyFocusBusinessProcessListReqDto reqDto){


       QueryKeyFocusListComRespDto queryKeyFocusListComRespDto_1 =null;
BatchQueryVirtualOrgMemberComBorderRespDto batchQueryVirtualOrgMemberComBorderRespDto_1 =null;
//步骤0: D3查询重点关注列表(公共) - queryKeyFocusListCom
     QueryKeyFocusListComRespDto queryKeyFocusListComRespDto = null;
    QueryKeyFocusListComReqDto queryKeyFocusListComReqDto=new QueryKeyFocusListComReqDto();
  queryKeyFocusListComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1957434_1
if(reqDto!=null){
      queryKeyFocusListComReqDto.setKeyFocusContentTypeCode(reqDto.getKeyFocusContentTypeCode());//SimpleFieldAssign//sourceId:1957433_1
queryKeyFocusListComReqDto.setFocusObjectId(reqDto.getFocusObjectId());//SimpleFieldAssign//sourceId:1957431_1
queryKeyFocusListComReqDto.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1957432_1
    }

    /*D3查询重点关注列表(公共)[8880]   */
    Assert.isNull(queryKeyFocusListComReqDto.getSpaceId(),"B3查询重点关注列表-D3查询重点关注列表(公共)-创建于空间ID不能为空",false);
      queryKeyFocusListComRespDto = fwAppDashboardTargetContentClient.queryKeyFocusListCom(queryKeyFocusListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      queryKeyFocusListComRespDto_1 = queryKeyFocusListComRespDto;

//步骤1: D3-6批量查询虚拟组织成员(公共)(边界) - batchQueryVirtualOrgMemberComBorder
     BatchQueryVirtualOrgMemberComBorderRespDto batchQueryVirtualOrgMemberComBorderRespDto = null;
    if(queryKeyFocusListComRespDto !=null){
          BatchQueryVirtualOrgMemberComBorderReqDto batchQueryVirtualOrgMemberComBorderReqDto=new BatchQueryVirtualOrgMemberComBorderReqDto();
  batchQueryVirtualOrgMemberComBorderReqDto.setIsPersonCharge("TRUE");//sourceId:1957444_1
if(queryKeyFocusListComRespDto!= null&&  queryKeyFocusListComRespDto.getKeyFocusList() !=null&& !CollectionUtil.isEmpty(queryKeyFocusListComRespDto.getKeyFocusList())){
      batchQueryVirtualOrgMemberComBorderReqDto.setVirtualOrgMemberList(queryKeyFocusListComRespDto.getKeyFocusList().stream().map(item->item.getKeyFocusContentId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1957441_1
    }

    /*D3-6批量查询虚拟组织成员(公共)(边界)[2944]   */
    Assert.isNull(batchQueryVirtualOrgMemberComBorderReqDto.getIsPersonCharge(),"B3查询重点关注列表-D3-6批量查询虚拟组织成员(公共)(边界)-是否负责人不能为空",false);
      batchQueryVirtualOrgMemberComBorderRespDto = fwAppVirtualOrgClient.batchQueryVirtualOrgMemberComBorder(batchQueryVirtualOrgMemberComBorderReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      batchQueryVirtualOrgMemberComBorderRespDto_1 = batchQueryVirtualOrgMemberComBorderRespDto;
           }

BffQueryKeyFocusBusinessProcessListRespDto retData = new BffQueryKeyFocusBusinessProcessListRespDto();
  //数据集融合  MoreListToOneSource
        if(queryKeyFocusListComRespDto_1!= null && !CollectionUtil.isEmpty(queryKeyFocusListComRespDto_1.getKeyFocusList()) ){
          for (KeyFocusDto keyFocusDto : queryKeyFocusListComRespDto_1.getKeyFocusList()) {
              BffKeyFocusDto retElm = new BffKeyFocusDto();
             if(queryKeyFocusListComRespDto_1!=null){
      retElm.setKeyFocusId(keyFocusDto.getKeyFocusId());//SimpleFieldAssign//sourceId:402282_2
retElm.setKeyFocusContentId(keyFocusDto.getKeyFocusContentId());//SimpleFieldAssign//sourceId:402283_2
retElm.setKeyFocusContentName(keyFocusDto.getKeyFocusContentName());//SimpleFieldAssign//sourceId:402284_2
retElm.setKeyFocusContentTypeCode(keyFocusDto.getKeyFocusContentTypeCode());//SimpleFieldAssign//sourceId:402285_2
retElm.setFocusObjectId(keyFocusDto.getFocusObjectId());//SimpleFieldAssign//sourceId:402286_2
retElm.setFocusObjectTypeCode(keyFocusDto.getFocusObjectTypeCode());//SimpleFieldAssign//sourceId:402287_2
retElm.setThemeContentTypeCode(keyFocusDto.getThemeContentTypeCode());//SimpleFieldAssign//sourceId:402289_2
retElm.setThemeContentId(keyFocusDto.getThemeContentId());//SimpleFieldAssign//sourceId:402288_2
retElm.setOrderNumber(keyFocusDto.getOrderNumber());//SimpleFieldAssign//sourceId:402290_2
    }
              retData.getKeyFocusList().add(retElm);
               if(batchQueryVirtualOrgMemberComBorderRespDto_1!= null){
          for (VirtualOrgMemberDto virtualOrgMemberDto : batchQueryVirtualOrgMemberComBorderRespDto_1.getVirtualOrgMemberList()) {
                if (virtualOrgMemberDto.getEntityId().equals(keyFocusDto.getKeyFocusContentId())) {
                 if(batchQueryVirtualOrgMemberComBorderRespDto_1!=null){
      retElm.setVirtualOrgInductionRecordId(virtualOrgMemberDto.getVirtualOrgInductionRecordId());//SimpleFieldAssign//sourceId:402291_2
retElm.setUserFace(virtualOrgMemberDto.getUserFace());//SimpleFieldAssign//sourceId:402292_2
retElm.setIdCardName(virtualOrgMemberDto.getIdCardName());//SimpleFieldAssign//sourceId:402293_2
retElm.setNickName(virtualOrgMemberDto.getNickName());//SimpleFieldAssign//sourceId:402294_2
    }
                }
            }
          }

          }
        }//sourceId:1957449_1


  retData.setPageNum(queryKeyFocusListComRespDto.getPageNum());
        retData.setPageSize(queryKeyFocusListComRespDto.getPageSize());
        retData.setTotal(queryKeyFocusListComRespDto.getTotalNum());
        retData.setIsLastPage((Math.ceil(Double.valueOf(queryKeyFocusListComRespDto.getTotalNum()) / Double.valueOf(queryKeyFocusListComRespDto.getPageSize()))) <= retData.getPageNum());


return retData;
  }
/**
   * B3批量设置重点关注排序[10064]
   * gen by moon at 8/6/2024, 8:16:56 PM
   */
    @Trace(operationName = "B3批量设置重点关注排序")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffBatchSetKeyFocusOrderNumberRespDto batchSetKeyFocusOrderNumber(BffBatchSetKeyFocusOrderNumberReqDto reqDto){


       //步骤0: D3批量改重点关注(公共) - batchUpdateKeyFocusCom
     BatchUpdateKeyFocusComRespDto batchUpdateKeyFocusComRespDto = null;
    BatchUpdateKeyFocusComReqDto batchUpdateKeyFocusComReqDto=new BatchUpdateKeyFocusComReqDto();
  if(reqDto!= null&&  reqDto.getKeyFocusList() !=null&& !CollectionUtil.isEmpty(reqDto.getKeyFocusList())){
      batchUpdateKeyFocusComReqDto.setKeyFocusList(reqDto.getKeyFocusList().stream().map(item -> BeanUtil.toBean(item, KeyFocusDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1956874_1
    }

    /*D3批量改重点关注(公共)[10063]   */

      batchUpdateKeyFocusComRespDto = fwAppDashboardTargetContentClient.batchUpdateKeyFocusCom(batchUpdateKeyFocusComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;




BffBatchSetKeyFocusOrderNumberRespDto retData = new BffBatchSetKeyFocusOrderNumberRespDto();





return retData;
  }
  //
}
